package com.zlkj.pro.modular.business.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * @author liyang
 * @date 2024/4/6
 * @time 14:34
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CustomerDTO extends MyBaseRequest {

    // 当前登录userId
    private Long userId;

    private Long id;

    private String name;

    private Integer type;

    private String classify;

    private String address;

    private String addressProvince;
    private String addressCity;
    private String addressArea;

    private String addressDetail;

    private Long agentId;

    private Integer level;

    private Integer customerStatus;

    private Integer dataSort;

    private String remark;

    private String phone;

    // 统一社会信用代码
    private String uscc;

    // 最近成交日期
    private LocalDate transactionDate;

    private Integer statusFlag;

    /**
     * 创建时间
     */
    private Date createTime;


    /**
     * 客户负责人
     */
    private Long createUserId;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private Long updateUser;

    /**
     * 删除标记：Y-已删除，N-未删除
     */
    private String delFlag;

    /**
     * 省份
     */
    private String province;

    private Integer roleId;

    private Integer pageNum;

    private Integer pageSize;

    // 1.按客户创建人以及是否下级创建权限查询 2.查询本代理商全部
    private Integer queryType;


    /**
     * 联系人信息
     */
    List<CustomerContactsDTO> contacts;

}